import { reactive, ref } from "vue"

let searchIndex=localStorage.getItem("searchServe")
searchIndex=searchIndex==undefined?0:parseInt(searchIndex)
console.log(searchIndex)
const searchServe=ref(searchIndex);
const setSearchServe=(boo)=>{
    localStorage.setItem("searchServe",boo)
    searchServe.value=boo
}
export {
    setSearchServe,
    searchServe
}